package com.adcc.ags.cgw.utils;

/**
 * 常量类
 */
public final class Constant {

    /**
     * 报文消息头
     */
    // 消息头部
    public static final String STRING_MSG_HEAD = "MSG.HEAD";

    // 消息类型
    public static final String STRING_MSG_TYPE = "MSG.TYPE";

    // 消息发送者
    public static final String STRING_MSG_SENDER = "MSG.SENDER";

    /**
     * Actor参数KEY
     */
    // ReceiverActor参数1
    public static final String STRING_RECEIVER_ACTOR_KEY1 = "Transfer";

    // ReceiverActor参数2
    public static final String STRING_RECEIVER_ACTOR_KEY2 = "User";

    // VerificationActor参数1
    public static final String STRING_VERIFY_ACTOR_KEY1 = "Msg";

    // VerificationActor参数2
    public static final String STRING_VERIFY_ACTOR_KEY2 = "User";

    // FilterActor参数1
    public static final String STRING_FILTER_ACTOR_KEY1 = "Msg";

    // FilterActor参数2
    public static final String STRING_FILTER_ACTOR_KEY2 = "User";

    // RouterActor参数1
    public static final String STRING_ROUTER_ACTOR_KEY1 = "Msg";

    // RouterActor参数2
    public static final String STRING_ROUTER_ACTOR_KEY2 = "User";

    /**
     * 消息异常代码
     */

    // 消息验证异常代码
    public static final String STRING_ERROR_CODE_VERIFYFAILED = "1001";

    // 消息路由异常代码
    public static final String STRING_ERROR_CODE_ROUTEFAILED = "2001";

    // 消息发送异常代码
    public static final String STRING_ERROR_CODE_SENDFAILED = "3001";

    // 消息过滤异常代码
    public static final String STRING_ERROR_CODE_FILTERFAILED = "4001";

    /**
     * 用户配置文件
     */
    // 同步用户列表文件夹
    public static String STRING_SYNC_USERLIST_DIR = "/syncUserList";

    // 用户列表文件名
    public static String STRING_USERLIST_FILE = "userList.xml";

    // 黑名单文件名
    public static String STRING_BLACKLIST_FILE = "blackList.xml";

    /**
     * 配置列表通用字符
     */
    // 用户路由通配符
    public static final String CHAR_USER_ROUTE = "*";

    // 用户路由占位符
    public static final String CHAR_USER_REGEX = ".";
}
